import http from 'k6/http';

export let options={
	batch:2,
	discardResponseBodies:true,
};

export default function(){
	
	let requests = [['GET', 'http://www.baidu.com', null, null],
		['GET', 'http://map.baidu.com', null, null],
		['GET', 'http://tieba.baidu.com', null, null],
	];
	let res = http.batch(requests);//使用对象来保存请求的信息
	for(var i =0; i<res.length;i++){
	  console.log("res.status::"+res[i].status);
	};
	
}
